Fedora 17
Sponsored Link

Network Settings
2012/05/29
[1] Set static IP address to the server, DHCP is not recommended if you use as a server. ( Replace the section 'ifcfg-***' to your own interface name )
[root@dlp ~]#
vi /etc/sysconfig/network-scripts/ifcfg-p21p1
UUID="c7eaf0e6-f6de-4013-bae6-1d29e39f7cfb"
NM_CONTROLLED="yes"
HWADDR="00:24:1D:13:7A:26"
# change

BOOTPROTO=
none

DEVICE="p21p1"
ONBOOT="yes"
# add follows

# this server's IP address

IPADDR=10.0.0.30
# subnet mask

NETMASK=255.255.255.0
TYPE=Ethernet
# default gateway

GATEWAY=10.0.0.1
# DNS server's IP address

DNS1=10.0.0.10
IPV6INIT=no
USERCTL=no
PREFIX=24
[root@dlp ~]#
systemctl disable NetworkManager.service

[root@dlp ~]#
service network restart

[root@dlp ~]#
chkconfig network on

[root@dlp ~]#
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

p21p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.30  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::224:1dff:fe13:7a26  prefixlen 64  scopeid 0x20<link>
        ether 00:24:1d:13:7a:26  txqueuelen 1000  (Ethernet)
        RX packets 190  bytes 18029 (17.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 181  bytes 24556 (23.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 45  base 0xe000
 
Tweet